<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var aa=["America","Greece","Britain","Canda","China","Egypt"];
			var count=0;
			for(var i in aa){
				if(aa[i].indexOf("a")!=-1||aa[i].indexOf("A")!=-1){
					count++;
				}
			}
			console.log(count);
		</script>
		<!-- <script type="text/javascript">
		var aa=["America","Greece","Britain","Canda","China","Egypt"];
		var count=0;
		for(var i=0;i<bb.length;i++)
		{
			if(bb[i].indexOf("a")!=-1)
			{
				count++;
			}
		}
		console.log(count);
		</script> -->
		<script type="text/javascript">
			var a=prompt("input:");
		</script>
	</head>
	<body>
	</body>
</html>
